package l.l.w.UnderstandingJVM.OverLoad;

/**
 * Created by llw on 2017/12/26.
 */
public class Test1 {
    public static void main(String[] args) {
//        SubClass subClass = new SubClass();
//        byte b = 1;
//        int z = b+1;
//        boolean c = false;
//        int zz = c +1
        int length = 0x8FFFFFF;
        System.out.println(length);
        System.out.println(length/1024/1024);
    }
}
class SuperClass{
    int nonStaticInt = 1;
    static int  staticInt = 2;
    SuperClass(){
        demo1();
    }
    public void demo1(){
        System.out.println("SuperClass-nonStaticInt: "+nonStaticInt);
        System.out.println("SuperClass-staticInt: " + staticInt);
    }
}
class SubClass extends SuperClass{
    int nonStaticInt = 3;
    static int  staticInt = 4;

    @Override
    public void demo1() {
        System.out.println("SubClass-nonStaticInt: "+nonStaticInt);
        System.out.println("SubClass-staticInt: " + staticInt);
    }
}